package com.taiji.asset.domain;

import com.taiji.common.annotation.Excel;
import com.taiji.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 服务器资产信息对象 property_info
 *
 * @author a22999
 * @date 2023-06-20
 */
@ApiModel(value = "PropertyInfo", description = "服务器资产信息对象")
public class PropertyInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @ApiModelProperty("服务器资产信息编号")
    private String id;

    /** 服务器代码 */
    @ApiModelProperty("服务器代码")
    private String serverCode;

    /** 项目代码 */
    @ApiModelProperty("项目代码")
    private String projectCode;

    /** 服务器名称 */
    @Excel(name = "服务器名称")
    @ApiModelProperty("服务器名称")
    private String serverName;

    /** 服务器地址 */
    @Excel(name = "服务器地址")
    @ApiModelProperty("服务器地址")
    private String serverAddress;

    /** 服务器版本 */
    @Excel(name = "服务器版本")
    @ApiModelProperty("服务器版本")
    private String serverVersion;

    /** 监控状态 */
    @Excel(name = "监控状态")
    @ApiModelProperty("监控状态")
    private String monitorStatus;

    /** 项目数量 */
    @Excel(name = "项目数量")
    @ApiModelProperty("项目数量")
    private Integer projectAmount;

    /** 服务端口 */
    @Excel(name = "服务端口")
    @ApiModelProperty("服务端口")
    private String port;

    /** 项目部署地址 */
    @Excel(name = "项目部署地址")
    @ApiModelProperty("项目部署地址")
    private String deployAddress;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setServerCode(String serverCode)
    {
        this.serverCode = serverCode;
    }

    public String getServerCode()
    {
        return serverCode;
    }
    public void setProjectCode(String projectCode)
    {
        this.projectCode = projectCode;
    }

    public String getProjectCode()
    {
        return projectCode;
    }
    public void setServerName(String serverName)
    {
        this.serverName = serverName;
    }

    public String getServerName()
    {
        return serverName;
    }
    public void setServerAddress(String serverAddress)
    {
        this.serverAddress = serverAddress;
    }

    public String getServerAddress()
    {
        return serverAddress;
    }
    public void setServerVersion(String serverVersion)
    {
        this.serverVersion = serverVersion;
    }

    public String getServerVersion()
    {
        return serverVersion;
    }
    public void setMonitorStatus(String monitorStatus)
    {
        this.monitorStatus = monitorStatus;
    }

    public String getMonitorStatus()
    {
        return monitorStatus;
    }
    public void setProjectAmount(Integer projectAmount)
    {
        this.projectAmount = projectAmount;
    }

    public Integer getProjectAmount()
    {
        return projectAmount;
    }
    public void setPort(String port)
    {
        this.port = port;
    }

    public String getPort()
    {
        return port;
    }
    public void setDeployAddress(String deployAddress)
    {
        this.deployAddress = deployAddress;
    }

    public String getDeployAddress()
    {
        return deployAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("serverCode", getServerCode())
                .append("projectCode", getProjectCode())
                .append("serverName", getServerName())
                .append("serverAddress", getServerAddress())
                .append("serverVersion", getServerVersion())
                .append("monitorStatus", getMonitorStatus())
                .append("projectAmount", getProjectAmount())
                .append("port", getPort())
                .append("deployAddress", getDeployAddress())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
